package cate.common.table.res.hoard.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.hoard.row.HoardLevelRow;

public class HoardLevelSheet extends ESheet<HoardLevelRow> {
    @Override
    public String getSheetName() {
        return "秘藏等级";
    }

    public HoardLevelRow showLevel(int exp) {
        for (HoardLevelRow row : this.list) {
            if (row.expMin <= exp && row.expMax >= exp) {
                return row;
            }
        }
        return null;
    }
}
